package com.kk.model;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * @author: kevin
 * @date: 2018-12-02 11:32
 */
@Data
@Entity
public class Nav extends BaseEntity {
    private String name;
    private String url;
    private Integer sort;
//    @ManyToOne(targetEntity = Content.class, fetch = FetchType.EAGER)
//    @JoinColumn(name="content_id")
//    private Content content;

    public Nav() {
    }

    public Nav(String name, String url, int sort) {
        this.name = name;
        this.url = url;
        this.sort= sort;
    }
}
